package com.zuo.demo01.service.impl;

import com.zuo.demo01.dao.BlogTagRelationMapper;
import com.zuo.demo01.pojo.BlogTagRelation;
import com.zuo.demo01.service.BlogTagRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class BtrServiceImpl implements BlogTagRelationService {


    @Autowired
    private BlogTagRelationMapper blogTagRelationMapper;

    @Override
    public List<BlogTagRelation> findAll() {
        return blogTagRelationMapper.findAll();
    }

    @Override
    public int insert(Map<String,Object> map) {
        return blogTagRelationMapper.insert(map);
    }

    @Override
    public List<BlogTagRelation> findByTag(Map<String, Object> map) {
        return blogTagRelationMapper.findByTag(map);
    }
}
